package com.ruoyi.forum.model;


import java.io.Serializable;

/**
 * @author: houyong
 * @date: 2024年04月26日 16:10
 */
public class TopicGreantStatus implements Serializable {

    private Long topicId;

    private Long count;

    public TopicGreantStatus(Long topicId, Long count) {

        this.topicId = topicId;

        if (count > 0) {
            this.count = 1L;
        } else {
            this.count = 0L;
        }

    }

    public Long getTopicId() {
        return topicId;
    }

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }
}
